package com.hx.exception;

import com.hx.result.ResponseEnum;

/**
 * @author zhangyiming
 * @date 2022/3/2 16:20
 */

/**
 * 自定义异常类
 */
public class WebException extends RuntimeException{
    private ResponseEnum responseEnum;
    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }

    public WebException(ResponseEnum responseEnum){
        super(responseEnum.getMsg());
        this.responseEnum = responseEnum;
    }
}
